package com.web.ShoppingDemo.daoImpl;


import org.springframework.stereotype.Repository;

import com.web.ShoppingDemo.dao.ForderDao;
import com.web.ShoppingDemo.model.Forder;
@Repository("forderDao")
public class ForderDaoImpl extends BaseDaoImpl<Forder> implements ForderDao{

	@Override
	public void updateStatusById(int id, int sid) {
		String hql = "UPDATE Forder f SET f.status.id = :sid WHERE f.id = :id";
		getSession().createQuery(hql).setInteger("sid", sid)
									.setInteger("id",id)
									.executeUpdate();
	}
	
}
